Skip to content

Add forceTTL to cache settings#4

Merged
pbrisbin merged 2 commits intomainfrom
pb/cache-path
Mar 11, 2026
Merged

Add forceTTL to cache settings#4
pbrisbin merged 2 commits intomainfrom
pb/cache-path

Conversation

@pbrisbin
Copy link
Member

@pbrisbin pbrisbin commented Mar 10, 2026

Add forceTTL to cache settings

5066739

If a value is set here, this TTL will be used regardless of the HTTP
cache directives. This can be useful in a case like a CLI, where
repeated runs within some defined time range should re-use HTTP
responses, even if those responses are not cacheable according to
the server.

Version bump

a061b22

If a value is set here, this TTL will be used regardless of the HTTP
cache directives. This can be useful in a case like a CLI, where
repeated runs within some defined time range should re-use HTTP
responses, even if those responses themselves are cacheable according to
the server.
@pbrisbin pbrisbin requested a review from a team as a code owner March 10, 2026 20:12
@pbrisbin pbrisbin requested review from mjgpy3 and removed request for a team March 10, 2026 20:12
@pbrisbin pbrisbin changed the title Version bump Add forceTTL to cache settings Mar 10, 2026
@pbrisbin pbrisbin requested review from chris-martin and removed request for mjgpy3 March 10, 2026 20:12
@pbrisbin pbrisbin merged commit 4d5cacd into main Mar 11, 2026
9 checks passed
@pbrisbin pbrisbin deleted the pb/cache-path branch March 11, 2026 14:56
@pbrisbin
Copy link
Member Author

Oops, this should've been a major bump. I was thinking of it as a (backwards-compatible) addition, but it's not since it's changing a record type that we're not encapsulating construction of, which is breaking. I'm inclined to not worry about it, but let me know if you feel I should release a major and deprecate the incorrect minor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants